#include <fstream>


int main()
{
	std::ifstream is("in.txt");
	std::ofstream os("out.txt");

	int n;
	is >> n;
	int x = 0;
	int y = 0;
	for (int i = 0; i < n; i++)
	{
		os << x << " " << y << "\n";
		switch (i % 4)
		{
		case 0:
			x += (i + 2) / 2;
			break;
		case 1:
			y += (i + 1) / 2;
			break;
		case 2:
			x -= (i + 2) / 2;
			break;
		case 3:
			y -= (i + 1) / 2;
			break;
		}
	}
	return 0;
}

